package Mediator;

/**
 * @ProjectName: 23种设计模式
 * @Package: Mediator
 * @ClassName: xx
 * @Author: renhan
 * @Description:
 * @Date: 2020/11/11 14:23
 * @Version: 1.0
 * 抽象同事类
 */
abstract class Colleague {
    /* 持有调停者对象 */
    private Mediator mediator;
    public Colleague(Mediator mediator){
        this.mediator = mediator;
    }
    public Mediator getMediator(){
        return mediator;
    }
}
